$(function(){
    $.ajax({
        url: "http://193.112.55.79:9090/api/getcoupon",
        type: "get",
        dataType: "json",
        success: function(res) {
            console.log(res);
            var htmlStr = template("templ1", {data: res.result});
            $(".coupon_list ul")[0].innerHTML = htmlStr;
        }
    })
});